module.exports = {
  data: {
    type: Array,
    default () {
      return [
        {
          label: '<span style="color:red;font-size:14px">全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部全部</span>',
          imgUrl: '',
          href: 'http://www.baidu.com'
        }
      ]
    },
    name: '选择项',
    filedType: 'api'
  },

  noHoverPause: {
    type: Boolean,
    default: false,
    name: '鼠标经过时不停止',
    filedType: 'switch'
  },

  bgColor: {
    type: String,
    default: '#fff',
    name: '背景色',
    filedType: 'color'
  },

  padding: {
    type: String,
    default: '10px',
    name: '内边距',
    filedType: 'string'
  },

  width: {
    type: String,
    default: '150px',
    name: '宽度',
    filedType: 'string'
  },

  height: {
    type: String,
    default: '120px',
    name: '高度',
    filedType: 'string'
  },

  border: {
    type: String,
    default: '1px solid red',
    name: '边框',
    filedType: 'string'
  },
  borderRadiu: {
    type: String,
    default: '10px',
    name: '边框圆角',
    filedType: 'string'
  },

  zIndex: {
    type: String,
    default: '100',
    name: '浮窗层级',
    filedType: 'string'
  },

  color: {
    type: String,
    default: '#333',
    name: '字体颜色',
    filedType: 'color'
  },

  fontSize: {
    type: String,
    default: '16px',
    name: '字体大小',
    filedType: 'string'
  },

  align: {
    type: String,
    default: 'center',
    name: '对齐方式',
    filedType: 'select',
    options: [
      {
        name: '左对齐',
        value: 'left'
      },
      {
        name: '居中',
        value: 'center'
      },
      {
        name: '右对齐',
        value: 'right'
      }
    ]
  },

  lineNum: {
    type: String,
    default: '4',
    name: '文字行数',
    filedType: 'string'
  },

  imgWidth: {
    type: String,
    default: '100%',
    name: '图片宽度',
    filedType: 'string'
  },

  imgHeight: {
    type: String,
    default: '100%',
    name: '图片高度',
    filedType: 'string'
  },
  objectFit: {
    type: String,
    default: 'none',
    name: '图片填充模式',
    filedType: 'select',
    options: [
      {
        name: '无',
        value: 'none'
      },
      {
        name: '填充',
        value: 'fill'
      },
      {
        name: '缩放',
        value: 'contain'
      },
      {
        name: '覆盖',
        value: 'cover'
      }
    ]
  },

  closeWidth: {
    type: String,
    default: '30px',
    name: '关闭按钮宽度',
    filedType: 'string'
  },
  closeHeight: {
    type: String,
    default: '30px',
    name: '关闭按钮高度',
    filedType: 'string'
  },
  closeFontSize: {
    type: String,
    default: '30px',
    name: '关闭按钮字体',
    filedType: 'string'
  },
  closeColor: {
    type: String,
    default: 'transparent',
    name: '关闭按钮颜色',
    filedType: 'color'
  },
  closeBgColor: {
    type: String,
    default: 'transparent',
    name: '关闭按钮背景',
    filedType: 'color'
  },
  closeHColor: {
    type: String,
    default: '#fff',
    name: '关闭按钮hover颜色',
    filedType: 'color'
  },
  closeHBgColor: {
    type: String,
    default: 'transparent',
    name: '关闭按钮hover背景',
    filedType: 'color'
  },
  clickFn: {
    type: Function,
    default: '',
    name: '点击事件函数',
    filedType: 'function'
  },
  useAccred: {
    type: Boolean,
    default: false,
    name: '链接自动验证',
    filedType: 'switch'
  },
  dataIsFromPortal: {
    type: Boolean,
    default: false,
    name: '是否从门户获取数据',
    nameTips: '如果从门户获取数据，则数据集无效',
    filedType: 'switch'
  },

  moudleId: {
    type: String,
    default: '',
    name: '新闻模块Id',
    nameTip: '新闻模块Id参数',
    filedType: 'sync',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  detaillUrl: {
    type: String,
    default: './detail.html',
    name: '详情页跳转地址',
    filedType: 'string',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  parentId: {
    type: String,
    default: '',
    name: '父导航(页面)Id',
    nameTip: '将获取该导航下的所有子导航，获取获取全部导航',
    filedType: 'autocomplete',
    suggestions: [
      {
        value: '',
        name: '根节点'
      },
      {
        value: '0',
        name: '一级导航'
      }
    ],
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  subMenuVisibal: {
    type: Boolean,
    default: false,
    name: '是否显示子菜单',
    filedType: 'switch',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },

  dropBgColor: {
    type: String,
    default: '#0d76f5',
    name: '导航中下拉选项选中背景',
    filedType: 'color',
    vif: {
      key: 'dataIsFromPortal',
      value: true
    }
  },
}
